package com.woniu.cinema.vo;

import com.woniu.cinema.domain.Movie;
import com.woniu.cinema.domain.MovieType;

import java.util.List;

/**
 * @author 杨光 微信号:tolryg
 * @time 15:35
 */
public class MovieVo extends Movie {


    private List<MovieType> movieTypeList;

//    private String movieTypeStr="";
    private String movieAreaStr;


    public String getMovieTypeStr() {
        String movieTypeStr="";
       if(movieTypeList!=null){
           for (MovieType movieType : movieTypeList) {
               movieTypeStr += movieType.getTypeName() + " ";
           }
       }
        return movieTypeStr;
    }



    public String getMovieAreaStr() {
        return movieAreaStr;
    }

    public void setMovieAreaStr(String movieAreaStr) {
        this.movieAreaStr = movieAreaStr;
    }

    public List<MovieType> getMovieTypeList() {
        return movieTypeList;
    }

    public void setMovieTypeList(List<MovieType> movieTypeList) {
        this.movieTypeList = movieTypeList;
//        if (movieTypeList != null) {
//
//            for (MovieType movieType : movieTypeList) {
//                movieTypeStr += movieType.getTypeName() + " ";
//            }
//
//        }
    }
}
